package com.sjh.lib_app.router

import android.app.Activity
import android.os.Bundle
import com.alibaba.android.arouter.launcher.ARouter

/**
 * 用于监听Scheme事件的Activity
 * @author Extends
 * @date 2020/6/11
 */
class SchemeFilterActivity : Activity() {
    companion object{
        //todo scheme配置，新项目记得把该配置切换为当前项目的
        const val scheme = "sjh"
        const val host = "www.yuzhua.com"

        fun getSchemeUrl() = "$host://$scheme"
    }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        ARouter.getInstance().build(intent.data).navigation()
        finish()
    }
}